﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace l1cs.server.templates
{
    class L1MobGroup
    {
        private int _id;
        private int _leaderId;
        private List<L1NpcCount> _minions = new List<L1NpcCount>();//Lists.newArrayList();
        private bool _isRemoveGroupIfLeaderDie;

        public L1MobGroup( int id, int leaderId, List<L1NpcCount> minions, bool isRemoveGroupIfLeaderDie )
        {
            _id = id;
            _leaderId = leaderId;
            _minions.AddRange( minions ); // 参照コピーの方が速いが、不変性が保証できない
            _isRemoveGroupIfLeaderDie = isRemoveGroupIfLeaderDie;
        }

        public int getId()
        {
            return _id;
        }

        public int getLeaderId()
        {
            return _leaderId;
        }

        public List<L1NpcCount> getMinions()
        {
            return _minions; //return Collections.unmodifiableList(_minions);
        }

        public bool isRemoveGroupIfLeaderDie()
        {
            return _isRemoveGroupIfLeaderDie;
        }
    }
}
